#include <stdio.h>
char *s1[] = {"zero", "one", "two", "three", "four", "five", "six", "seven", "eight", "nine"};
char *s1b[] = {"ten", "eleven", "twelve", "thirteen", "forteen", "fifteen", "sixteen", "seventeen", "eighteen", "ninteen"};
char *s10[] = {"", "", "twenty", "thirty", "forty", "fifty", "sixty", "seventy", "eighty", "ninty"};
int main(void)
{
    int num, n1, n2;
    printf("Enter a two-digit number: ");
    scanf("%d", &num);
    n1 = num / 10;
    n2 = num % 10;
    switch (n1) {
    case 0:
        printf("You entered the number %s\n", s1[n2]);
        return 0;
    case 1: 
        printf("You entered the number %s\n", s1b[n2]);
        return 0;
    default:
        printf("You entered the number %s", s10[n1]);
    }
    if (n2)
        printf("-%s", s1[n2]);
    printf("\n");
    return 0;
}